from urllib.request import urlopen
from bs4 import BeautifulSoup

html = urlopen("http://codeforces.com/contest/897/problem/A")

bsobj = BeautifulSoup(html,"html.parser")

tag = bsobj.findAll("span",{"class":"tag-box"})

for i in tag:
    print(i.get_text())
